{% extends "learing_logs/base.html" %}
{% block content %}
    <p>
        <a href="{% url 'learing_logs:topic' topic.id %} ">{{ topic.text }}</a>
    </p>
    <form action="{% url 'learing_logs:new_entry' topic.id %}" method="POST" >
        {% csrf_token %}
        {{ form.as_p }}
        <button name="submit" >添加条目</button>
    </form>
{% endblock content %}